
def And(x1,x2):
    if x1==1 and x2==1:
        return 1
    return 0
def Or(x1,x2):
    if x1==1 or x2==1:
        return 1
    return 0
def Not(x1):
    if x1==1:
        return 1
    return 0
def a(x1,x2):
    w1=0.5
    w2=0.7
    f=1
    e=w1*x1+w2*x2
    if e>f:
        return 1
    else :
        return 0


print(a(1,1))
print(a(0,1))
print(a(0,0))